﻿using System;
using System.Collections.Generic;

namespace DynamicProxy.Core
{
    /// <summary>
    /// 调用类
    /// </summary>
    public class Invocation
    {
        public object[] Parameters { get; set; }

        public Delegate DelegateMethod { get; set; }

        public object Process()
        {
            return DelegateMethod.DynamicInvoke(Parameters);
        }
    }
}
